package com.mall.order.constants;

import lombok.Data;

public enum OrderItemConstants {
    INVENTORY_LOCKED("1","库存已锁定"),
    INVENTORY_FREED("2","库存已释放"),
    INVENTORY_DEDUCTED("3","库存扣减成功");

    private String code;
    private String message;

    OrderItemConstants(String code, String message) {
        this.code = code;
        this.message = message;
    }

    OrderItemConstants() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
